package start;

import org.springframework.beans.factory.config.BeanPostProcessor;

public class MyBeanManager implements BeanPostProcessor{
    public MyBeanManager() {
        System.out.println("Constructor:"+this.getClass().getCanonicalName()+"="+this);
    }
    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) {
        Object res = bean;
        System.out.println(this+":      postProcessBeforeInitialization("+bean+","+beanName+")="+res);
        return res;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) {
        Object res = bean;
        System.out.println(this+":      postProcessAfterInitialization("+bean+","+beanName+")="+res);
        return res;
    }
}
